aux_source_directory(. SRC_LIST)
set(FRONT_SRC ../rpc.pb.cc)

add_executable(consumer ${SRC_LIST} ${FRONT_SRC});

find_library(PROTOBUF_LIB libprotobuf.a PATHS /usr/local/protobuf/lib)


if(PROTOBUF_LIB)
target_link_libraries(consumer myrpc ${PROTOBUF_LIB} pthread)
endif()



